package com.dengqi.mymodule.fragment;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.dengqi.mymodule.R;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

/**
 * Created by dell on 2018/6/15
 */

public class Type2Fragment extends Fragment {

    private TextView textView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_video, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        textView = view.findViewById(R.id.textView);

        Bundle bundle = getArguments();
        if(bundle!=null){
            String title = bundle.getString("title");
            textView.setText(title);
        }

    }
}
